import type { Router } from 'vue-router';
import { createRouteListenerGuard } from '@/router/guard/page-listener-guard.ts';
import { createPermissionGuard } from '@/router/guard/permission-guard.ts';
import { createNProgressGuard } from '@/router/guard/page-loading-guard.ts';
import { createPageTitleGuard } from '@/router/guard/page-title-guard.ts';

export function createRouterGuard(router: Router) {
  createPageTitleGuard(router)
  createNProgressGuard(router);
  createRouteListenerGuard(router);
  createPermissionGuard(router);
}
